package com.cwj.springboot_study.repositories;

import com.cwj.springboot_study.model.Person;
import org.springframework.data.jpa.repository.JpaRepository;

public interface PersonRepository extends JpaRepository<Person, Integer> {
    boolean existsByUsernameAndDeletedIsFalse(String username);

    Person findByUsername(String username);
}
